<div>
    <table border="1">
        <tbody>
        {volist name='list' id='user'}
        <tr>
            <td>{$user.id}</td>
            <td>{$user.username}</td>
            <td>{$user.password}</td>
        </tr>
        </tbody>

        {/volist}
    </table>
</div>
{$list|raw}
<div>------------------------------------------------------------------------</div>
<div>
    <table border="1">
        <thead>
        <tr>
            <th>编号</th>
            <th>用户名</th>
        </tr>
        </thead>
        <tbody>
        {volist name='list' id='user'}
        <tr>
            <td>{$user.id}</td>
            <td>{$user.username}</td>
        </tr>
        {/volist}
        </tbody>
        <tfoot>
        <tr>
            <td colspan="2">
                $list|raw
            </td>
        </tr>
        </tfoot>
    </table>
</div>